package com.egao.common.module.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 专业
 * @author pyx
 */
@ApiModel(description = "专业")
@TableName("sys_major")
@Data
public class Major implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学历 1本科 2研究生")
    private Integer xl;

    @ApiModelProperty("专业名称")
    private String name;

    @ApiModelProperty("专业编码")
    private String code;

    @ApiModelProperty("学院编码")
    private String collegeCode;

    @ApiModelProperty("学院名称")
    @TableField(exist = false)
    private String collegeName;

    @ApiModelProperty("添加时间")
    private Date createTime;

    @ApiModelProperty("编辑时间")
    private Date updateTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;

}
